package start.service.impls;

import org.springframework.stereotype.Service;
import start.mapper.UserMapper;
import start.model.User;
import start.service.IUserService;

import javax.annotation.Resource;

@Service
public class UserService implements IUserService {

	@Resource
	private UserMapper mapper;
	
	
	@Override
	public User find(User user) {
		
		return this.mapper.select(user);
	}

	
	@Override
	public void modify(User user) {
		this.mapper.update(user);
		
	}

}
